# coding=utf-8
import sys, os.path
sys.path.append(os.path.dirname(__file__) + '/../../')
import math
from input import *


class FlowerInput(Input):
    def __init__(self, data):
        self.data = data

    def distance(self, other):
        num = len(self.data)
        sum = 0
        for i in range(num):
            sum += (self.data[i] - other.data[i]) * (self.data[i] - other.data[i])
        return math.sqrt(sum)
